package com.mapaoer.coreservice.controller.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户第三方认证表
 * </p>
 *
 * @author banny.Yang
 * @since 2025-09-02
 */
@Getter
@Setter
@TableName("user_third_party_auths")
public class UserThirdPartyAuths implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联的用户ID
     */
    private Long userId;

    /**
     * 第三方平台
     */
    private String provider;

    /**
     * 第三方平台的用户唯一标识
     */
    private String providerUserId;

    /**
     * 微信UnionID
     */
    private String unionId;

    /**
     * 存储凭证或原始用户信息
     */
    private String credentials;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;
}
